<?php
class Default_Model_config extends Zend_Db_Table{
    
	 protected $_name ="global";
	 protected $_primary ="id";
	 
     public function get_details()
	{
		$db = Zend_Registry::get('connectDb');
		$select = $db->select()
		          ->from('global') 
		          ->where('id = ?','1') ;
		$result = $db->fetchAll($select);
	    return $result;          
		
	}	
	
	public function edit($data)
	{
	
		$tblGroup = new Default_Model_config();
		$where ='id =1';
      	$data1 = array(
      	                    'title'         	=> $data['title'],
      	                    'address'         	=> $data['address'],
			              	'telephone'         => $data['telephone'],
							'email'			    => $data['email'],
		  					'website'			=> $data['website'],
      	                    'user_mail'       	=> $data['user_mail'],
			              	'port'              => $data['port'],
							'password'		    => $data['password'],
		  					'host_mail'			=> $data['host_mail'],
		  					
						 );
    	$tblGroup->update($data1,$where);
    
		
	}
	

}